package com.example.wowangz.redis.lock.exception;

/**
 * Redis分布式锁异常
 */
public class RedisLockException extends RuntimeException {

    private static final long serialVersionUID = -6242465000725546619L;

    private static final String baseMsg = "RedisLock加锁异常: %s";

    /**
     * 创建RedisLockException
     *
     * @param msg
     */
    public RedisLockException(String msg) {
        super(String.format(baseMsg, msg));
    }

    /**
     * 创建RedisLockException
     *
     * @param msg
     * @param cause
     */
    public RedisLockException(String msg, Throwable cause) {
        super(String.format(baseMsg, msg), cause);
    }

}
